<tagLib name="html" />
{$header}<div id="main" class="main" >
<!-- 主体内容  -->
<div class="content" >
  
  <php>
    $str = __SELF__;
    $pattern = "/\&keywords(.*)+/";
    $post_url = preg_replace($pattern, "\$1", $str);
  </php>  
<!--  功能组区域  -->
<div class="btn-toolbar">
  <button class="btn"> 选择供应商</button>
          <form class="search-form pull-right" method='post' action="{$post_url}">
              <input type="text" class="search-query span4" name="reaction" <notempty name='_REQUEST.reaction'>
                    <php>echo 'value="'.urldecode($_REQUEST['reaction']).'"'</php><else/>
                    placeholder="搜索反应类型"
                </notempty>
                >和
                <input type="text" class="search-query span4" name="pclass" <notempty name='_REQUEST.pclass'>
                    <php>echo 'value="'.urldecode($_REQUEST['pclass']).'"'</php><else/>
                    placeholder="搜索产品类型"
                </notempty>
                >
                <input type="hidden" name="custom" value=1>
                <input type="submit" class="btn btn-primary" value="搜索">
          </form>
  </div>
<!-- 功能组区域结束 -->
<php>
    function getCateName($cat_id=0){
        return getModelName($cat_id,'Category');
    }
</php>
<!-- 列表显示区域  -->
<div class="list" >
<div id="result" class="result none"></div>
<table class="table table-bordered table-striped" id="checkList">
<tr>
  <th width="5%"><a href="javascript:sortBy('id','1','search',".urldecode($_REQUEST['keywords'])."'" title="按照编号升序排列 ">编号</a>
  </th>
  <th>
    <a href="javascript:sortBy('cas','1','search','')">公司</a>
  </th>
  <th>
    <a href="javascript:sortBy('weight','1','search','')" title="按照单位升序排列 ">电话</a>
  </th>
  <th>
    <a href="javascript:sortBy('nature','1','search','')" title="按照默认进价升序排列 ">地址</a>
  </th>
  <th width="8">
    选择</th>
</tr>
<volist name="list" id="vo">
  <tr>
    <td>{$vo.id}</td>
    <td>{$vo.name}</td>
    <td>{$vo.phone}</td>
    <td>{$vo.address}</td>
    <td><input type="checkbox" value='{$vo.id}' onclick="selectpro(this.value)"></td>
  </tr>
</volist>
</table>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>

<!-- 主页面结束 -->
<include file="Public:footer"/>
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" language="javascript">
  function selectpro(id){
     opener.document.location.href=APP+"/Ask_supplier_detail/add/asid/"+{$_REQUEST.asid}+"/offerid/"+id;
      window.close(); 
      return false;
}
 

</script>